#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int i, n,s,m;
	for (i = 1; i < 1000; i++)
	{
		s = 0;
		for (n = 1; n < i; n++)
			if (i % n == 0)
				s += n;
		if (s == n)
		{
			printf("%d its fac are ", s);
			for (m = 1; m < s; m++)
				if (s % m == 0)
					printf("%d ", m);
			printf("\n");
		}
	}
	return 0;
}